package com.yijiu.response;

import org.json.JSONException;
import org.json.JSONObject;

import com.yijiu.network.Response;
import com.yijiu.resource.RequestFieldFromServer;

public class BaseResponse extends Response
{
	public RequestFieldFromServer field;
	
	@Override
	protected void jsonToObject()
	{
		field = new RequestFieldFromServer();
		try
		{
			JSONObject jsonObject = reposonJson.getJSONObject("result");
			field.MD5 = jsonObject.optString("md5Id");
			field.mobile = jsonObject.optString("mobile");
			field.appKey = jsonObject.optString("appKey");
		}
		catch (JSONException e)
		{
			e.printStackTrace();
		}
	}
}
